package com.zej.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Arrays;

/**
 * @author 一缕茜阳
 * @date 2021/11/5
 */
@Controller
public class TestController {
    @GetMapping("/test")
    public String test(Model model){
        model.addAttribute("msg","helloSpringboot");
        model.addAttribute("users", Arrays.asList("111", "222", "333"));
        return "test";
    }

}
